<SCRIPT LANGUAGE="JavaScript">
<!--
/**
*	
*/
function f_gridDblFunc(keyID) {
	var curKeyID = trselObj.f_get_select_key();
	curKeyID = curKeyID[0];
	if (curKeyID == "") return ;
	//alert("curKeyID = " + curKeyID);

	var cost_unit_id = ""; //trselObj.f_getTDValueByKeyName(curKeyID ,"v_in_material_provider.cost_unit_id");
	var wh_id = "";
	var trObj = trselObj.f_getSelectTR();
	cost_unit_id =trselObj.f_getTDValueByKeyName(curKeyID ,"v_finance_empty_inve.cost_unit_id");    // trObj.cells(10).innerText;
	wh_id = trselObj.f_getTDValueByKeyName(curKeyID ,"v_finance_empty_inve.wh_id");                          //  trObj.cells(11).innerText
	var where_sql = "finance_empty_inve.material_code = ? and finance_empty_inve.wh_id = ? and finance_empty_inve.cost_unit_id = ? ";
	var where_type = "string;string;string";
	var where_value = curKeyID + ";" + wh_id+ ";" + cost_unit_id;
	

	var contextPath = "<%=CONTEXTPATH%>";
	var funcid = "FINANCE_EMPTY_INVE";

	var href = contextPath + g_layoutForm + funcid + "&pageType=subgrid";
	href += "&where_sql=" + where_sql;
	href += "&where_value=" + where_value;
	href += "&where_type=" + where_type;
	href += "&orgwhere_sql=" + where_sql;
	href += "&orgwhere_type=" + where_type;
	href += "&orgwhere_value=" + where_value;
	//alert("href = " + href);

	parent.frames("frmformdata").document.location = href
}
//-->
</SCRIPT>